icontheme: Append a / to the resource path
authorMatthias Clasen <mclasen@redhat.com>
Mon, 13 Nov 2017 12:33:35 +0000 (07:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 13 Nov 2017 12:33:35 +0000 (07:33 -0500)
g_resources_enumerate_children expects the path to end
in a '/' (even though thats not stated in the docs), and
will copy it if that isn't the case. Avoid the copy
by putting  a '/' there to begin with.

gtk/gtkicontheme.c

index a6af4f43dac3627f1347a1adeb9a543a2f130d6c..fb14e1094aeadee3eb13b929a2d591d2e523422f 100644 (file)
@@ -702,7 +702,7 @@ gtk_icon_theme_init (GtkIconTheme *icon_theme)
   for (j = 0; xdg_data_dirs[j]; j++) 
     priv->search_path[i++] = g_build_filename (xdg_data_dirs[j], "pixmaps", NULL);
 
-  priv->resource_paths = g_list_append (NULL, g_strdup ("/org/gtk/libgtk/icons"));
+  priv->resource_paths = g_list_append (NULL, g_strdup ("/org/gtk/libgtk/icons/"));
 
   priv->themes_valid = FALSE;
   priv->themes = NULL;